import request from '@/utils/request'

// 查询仿生条件列表
export function listTdmFangShengTiaoJian(query) {
  return request({
    url: '/admin/TdmFangShengTiaoJian/list',
    method: 'get',
    params: query
  })
}

// 查询仿生条件详细
export function getTdmFangShengTiaoJian(id) {
  return request({
    url: '/admin/TdmFangShengTiaoJian/' + id,
    method: 'get'
  })
}

// 新增仿生条件
export function addTdmFangShengTiaoJian(data) {
  return request({
    url: '/admin/TdmFangShengTiaoJian',
    method: 'post',
    data: data
  })
}

// 修改仿生条件
export function updateTdmFangShengTiaoJian(data) {
  return request({
    url: '/admin/TdmFangShengTiaoJian',
    method: 'put',
    data: data
  })
}

// 删除仿生条件
export function delTdmFangShengTiaoJian(id) {
  return request({
    url: '/admin/TdmFangShengTiaoJian/' + id,
    method: 'delete'
  })
}
// 审核
export function to_examine(id,shenHe,pinZhong) {
  const data = {id, shenHe,pinZhong}
  return request({
    url: '/admin/examine',
    method: 'put',
    data:data
  })
}
